from pymysql import connect
con = connect(host="Ambersong.mysql.pythonanywhere-services.com",port=3306,user="Ambersong",password="sxt0525s",db="Ambersong$user")
cursor1 = con.cursor()
sql = "select * from useradmin"
cursor1.execute(sql)
login_information = cursor1.fetchall()



def panduan_login(name, password):
	for item in login_information:
		print(item)
		if item[1] == name and item[2] == password:
			return "true"

def panduan_liebiao():
	a = login_information
	return a
